import {
    api,
    apiCN
} from './index'
import {
    axios
} from '@/utils/request'

export function getInfo(parameter) {
    return axios({
        url: api.getUser,
        method: 'get',
        params: parameter
    })
}

export function getPref(parameter) {
    return axios({
        url: api.pref,
        method: 'get',
        params: parameter
    })
}

export function login(parameter) {
    return axios({
        url: api.Login,
        method: 'get',
        params: parameter,
    })
}

export function register(parameter) {
    return axios({
        url: api.Register,
        method: 'get',
        params: parameter,
    })
}